class UsersController < ApplicationController
  def show
    @user = User.find(params[:id])
  end
  def home
  end

  def history
    @orders = current_user.orders
  end

  def list
    @users = User.all
  end

  def destroy
    @user = User.find(params[:id])
    @user.destroy

    redirect_to list_users_path
  end
  # def user_params
  #   params.require(:user).permit(:contact, :note, :region, :qrcode)
  # end
end
